home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / DevCon / Milan_1991 / Devcon91.4 / AdaptingToFonts / renderinfo.h < prev   
Encoding:
C/C++ Source or Header  |  1992-09-01  |  2.9 KB  |  90 lines

  1. /*
  2.  * MKSoft Development Amiga ToolKit V1.0
  3.  *
  4.  * Copyright (c) 1985,86,87,88,89,90 by MKSoft Development
  5.  *
  6.  * $Id: renderinfo.h,v 1.3.1 90/05/20 09:57:29 mks Exp Locker: mks $
  7.  *
  8.  * $Source: Programming:MKSoft/MKS/RCS/renderinfo.h,v $
  9.  *
  10.  * $Date: 90/06/13 09:57:29 $
  11.  *
  12.  * $Revision: 1.3.1 $
  13.  *
  14.  * $Log:    renderinfo.h,v $
  15.  * Revsison 1.3.1  90/06/13  09:57:29  mks
  16.  * Special version for DevCon examples...  This is a RCS branch
  17.  * and will not be part of the main tree...
  18.  *
  19.  * Revision 1.2  90/05/20  12:18:36  mks
  20.  * New functions to allocate and free RenderInfo structure.
  21.  * These should be used insted of the old FillIn_RenderInfo...
  22.  * Now has a TextAttr in the RenderInfo
  23.  * Now has the screen Width/Height in RenderInfo
  24.  * Now can be passed a screen pointer
  25.  *
  26.  * Revision 1.1  90/05/09  21:45:05  mks
  27.  * Source now fully under RCS...
  28.  *
  29.  */
  30.  
  31. /*
  32.  ************************************************************************
  33.  *                                                                      *
  34.  *                            DISCLAIMER                                *
  35.  *                                                                      *
  36.  *   THIS SOFTWARE IS PROVIDED "AS IS".                                 *
  37.  *   NO REPRESENTATIONS OR WARRANTIES ARE MADE WITH RESPECT TO THE      *
  38.  *   ACCURACY, RELIABILITY, PERFORMANCE, CURRENTNESS, OR OPERATION      *
  39.  *   OF THIS SOFTWARE, AND ALL USE IS AT YOUR OWN RISK.                 *
  40.  *   NEITHER COMMODORE NOR THE AUTHORS ASSUME ANY RESPONSIBILITY OR     *
  41.  *   LIABILITY WHATSOEVER WITH RESPECT TO YOUR USE OF THIS SOFTWARE.    *
  42.  *                                                                      *
  43.  ************************************************************************
  44.  */
  45.  
  46. /*
  47.  * This file contains the definition of the rendering information
  48.  * for elements on the screen.  This information is used to generate
  49.  * the correct pen colours for items on the screen...
  50.  *
  51.  * Note, that to call this function you MUST have Intuition and Graphics
  52.  * libraries open...
  53.  */
  54.  
  55. #ifndef    MKS_RENDERINFO_H
  56. #define    MKS_RENDERINFO_H
  57.  
  58. #include    <exec/types.h>
  59. #include    <graphics/text.h>
  60. #include    <intuition/screens.h>
  61.  
  62. struct RenderInfo
  63. {
  64.     UBYTE        Highlight;    /* Standard Highlight    */
  65.     UBYTE        Shadow;        /* Standard Shadow    */
  66.     UBYTE        TextPen;    /* Requester Text Pen    */
  67.     UBYTE        BackPen;    /* Requester Back Fill    */
  68.  
  69.     UBYTE        WindowTop;    /* Top border of window    */
  70.     UBYTE        WindowLeft;    /* Left border        */
  71.     UBYTE        WindowRight;    /* Right border        */
  72.     UBYTE        WindowBottom;    /* Bottom border    */
  73.  
  74.     UBYTE        WindowTitle;    /* Window title size    */    /* includes border */
  75.     UBYTE        junk_pad;
  76.  
  77.     SHORT        ScreenWidth;    /* Width of the screen */
  78.     SHORT        ScreenHeight;    /* Height of the screen */
  79.  
  80.     USHORT        FontSize;    /* Font size for string gadgets    */
  81.  
  82. struct    TextFont    *TheFont;    /* Font TextFont */
  83. struct    TextAttr    TextAttr;    /* Font TextAttr */
  84. };
  85.  
  86. VOID CleanUp_RenderInfo(struct RenderInfo *);
  87. struct RenderInfo *Get_RenderInfo(struct Screen *);
  88.  
  89. #endif    /* MKS_RENDERINFO_H */
  90.